]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
quickSettings: Fix MenuToggle clicks
authorFlorian Müllner <fmuellner@gnome.org>
Sat, 11 Feb 2023 12:35:20 +0000 (13:35 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Sat, 11 Feb 2023 12:38:42 +0000 (13:38 +0100)
With the split menu toggle, the actual clicks now happen on the
internal quick toggle, not the menu toggle as a whole where callers
expect it.

Forward the signal to fix that.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2636>

js/ui/quickSettings.js

index f0a737e41f25062153dfea07064fd1676958bad2..ef8d06e51d6fa5d6a12d5b8a16ad126d00181711 100644 (file)
@@ -206,6 +206,7 @@ var QuickMenuToggle = GObject.registerClass({
         this.bind_property('checked',
             this._menuButton, 'checked',
             GObject.BindingFlags.SYNC_CREATE);
+        contents.connect('clicked', (o, button) => this.emit('clicked', button));
         this._menuButton.connect('clicked', () => this.menu.open());
         this._menuButton.connect('popup-menu', () => this.emit('popup-menu'));
         contents.connect('popup-menu', () => this.emit('popup-menu'));